export function getDayDifference(dateString1, dateString2) {
    // 将时间字符串转换为日期对象
    const date1 = new Date(dateString1);
    const date2 = new Date(dateString2);

    // 计算毫秒数差异
    const timeDiff = Math.abs(date2.getTime() - date1.getTime());

    // 将毫秒数转换为天数
    const dayDiff = Math.ceil(timeDiff / (1000 * 3600 * 24));

    return dayDiff;
}